package bueu.bexl;

public class ParamExpr extends WithNextExpr {

	private final BexlExpr expr;

	public ParamExpr(BexlExpr expr, BexlExpr next) {
		super(expr.isRelative(), next);
		this.expr = expr;
	}

	@Override
	protected final Object eval(final BexlCtx ctx, final Object current, final boolean set,
			final Object newValue) throws BexlException {
		return this.expr.eval(ctx, current, set, newValue);
	}
	
	@Override
	public final String toString() {
		return this.expr.toString();
	}
}
